package com.seu.consumerdemo.utils;

import com.seu.consumerdemo.controller.ConsumerController;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class OneApplicationRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("Consumer开始执行");
        ConsumerController.acqPulsarMsg();
    }
}
